<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../../common/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>用户列表</title>
<link href="<%=basePath %>/resource/css/frame.css" type=text/css rel=stylesheet>
<script type="text/javascript">
function showRoleTree(){
	window.open("<%=basePath%>/system/role/roleTree.jsp","newwindow","height=550,width=500,top=200,left=800,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no");
}
</script>
</head>
<body>
<table cellSpacing=1 cellPadding=3 width="99%" bgColor=#6298e1 border=0>
	  <tr>
	     <td height=25 class="specialTd">
	       	<span class="whiteWord">用户管理：用户列表</span>
	    </td>
	  </tr>
	  <tr>
	    <td  bgColor=#ebf2f9 height=30>
	    </td>
	 </tr>
</table>
<table class="spaceTable">
  <tr>
    <td height=10></td>
  </tr>
</table>
<table cellSpacing=1 cellPadding=3 width="99%" bgColor=#6298e1 border=0>
	<tr>
    	<td align=right bgColor=#ebf2f9 colSpan=13 height=25>
    		<input type="button" class="textfield"  value="增加" onclick="window.location.href='<%=basePath%>/user/preAddUser.action'"/>
    	</td>
    </tr>
	<tr>
		<td class="headTd">序号</td>
		<td class="headTd">名称</td>
		<td class="headTd">状态</td>
		<td class="headTd">性别</td>
		<td class="headTd">手机</td>
		<td class="headTd">角色</td>
		<td class="headTd">操作</td>
	</tr>
	<s:iterator value="userList">
	<tr onmouseover="this.style.backgroundColor = '#FFFFFF'"  onmouseout="this.style.backgroundColor = ''" id="detailRow">
		<td>${ID}</td>
		<td>${USER_NAME}</td>
		<td>${USER_STATUS}</td>
		<td>${USER_SEX}</td>
		<td>${USER_PHONE}</td>
		<td><a href="<%=basePath%>/role/getRoleData.action?userId=${ID}">分配角色</a></td>
		<td><a href="<%=basePath%>/user/preUpdateUser.action?userId=<s:property value='ID'/>">修改用户</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="<%=basePath%>/user/deleteUser.action?userId=<s:property value='ID'/>">删除用户</a></td>
	</tr>
	</s:iterator>
</table>
</body>
</html>